package fr.ifsic.film.client.dto;

import fr.ifsic.film.shared.Personne;

public class PersonneDTO implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer p;
	private String nom;
	private String prenom;
	private String sexe;

	public PersonneDTO() {
	}

	public PersonneDTO(String nom) {
		this.nom = nom;
	}

	public PersonneDTO(String nom, String prenom, String sexe) {
		this.nom = nom;
		this.prenom = prenom;
		this.sexe = sexe;
	}

	public PersonneDTO(Personne personne) {
		this.p = personne.getP();
		this.nom = personne.getNom();
		this.prenom = personne.getPrenom();
		this.sexe = personne.getSexe();
	}

	public Integer getP() {
		return this.p;
	}

	public void setP(Integer p) {
		this.p = p;
	}

	public String getNom() {
		return this.nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return this.prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getSexe() {
		return this.sexe;
	}

	public void setSexe(String sexe) {
		this.sexe = sexe;
	}

}
